package com.scott.ch300.lambda.ch04;

import org.junit.Test;

/**
 * @author 黄后林
 * @version 1.0
 * @note
 * @date 2022-06-26 19:02:26
 */
public class StudyLambda01 {


    /**
     * 方法描述:  语法1 无参无返回值
     * @author: 黄后林
     * @date: 2022/6/26 19:03
     * @param
     */
    @Test
    public void test(){

        Runnable runnable = new Runnable() {
            @Override
            public void run() {
                System.out.println("before...");
            }
        };

    }
    @Test
    public void test2(){

        Runnable runnable = ()-> System.out.println("after...");
    }
}
